package info.maxhis.bn;

import info.maxhis.service.ListenerService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BirthdayReceiver extends BroadcastReceiver {
	static final String BOOT = "android.intent.action.BOOT_COMPLETED";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(BOOT)) {
			Intent i = new Intent(Intent.ACTION_RUN);
			i.setClass(context, ListenerService.class);
			context.startService(i);
		}
	}

}
